<{include file="Common/head"}>
<{include file="Common/menu"}>

<link href="_index_/yy/index.css" rel="stylesheet">
<link href="_index_/yy/laydate.css" rel="stylesheet">
<script src="_index_/yy/laydate.js"></script>
<script type="text/javascript" src="_index_/laydate/laydate.js"></script>

<style type="text/css">
*{font-size: 15px!important;}
</style>

<section class="Hui-article-box">

    <form style="max-width: 1200px;margin-top: 20px;margin-left: 20px;">
        <h4>备注：用“|”隔开,操作人员用“&”隔开,项目的预约时长用“,”隔开</h4>
        <table class="table table-border table-bordered radius">
            <{volist name="sets" id="vo"}>
            <tr class="paiban_tr">
                <td style="width: 160px;"><h4><{$vo.status}></h4></td>
                <td><textarea class="textarea" id="<{$vo.key}>"><{$vo.value}></textarea></td>
            </tr>
            <{/volist}>
        </table>
        <input class="btn btn-success radius" style="margin-top: 30px;margin-bottom: 20px;" type="button" id="submit" value="修改提交">
    </form>

</section>
<script>
    $(function(){
        $("#submit").on("click",function(){
            device = $("#device").val().trim();
            project = $("#project").val().trim();
            treat = $("#treat").val().trim();
            zhiliaoshi = $("#zhiliaoshi").val().trim();
            meirongshi = $("#meirongshi").val().trim();
            from = $("#from").val().trim();
            yiliao1=$("#yiliao1").val().trim();
            yiliao2=$("#yiliao2").val().trim();
            meirong1=$("#meirong1").val().trim();
            meirong2=$("#meirong2").val().trim();
            filterPD=$("#filterPD").val().trim();
            staffPower=$("#staffPower").val().trim();

            $.post("/index/Set/receivesetdata",{
                "device":device,
                "project":project,
                "treat":treat,
                "zhiliaoshi":zhiliaoshi,
                "meirongshi":meirongshi,
                "from":from,
                "yiliao1":yiliao1,
                "yiliao2":yiliao2,
                "meirong1":meirong1,
                "meirong2":meirong2,
                "filterPD":filterPD,
                "staffPower":staffPower
            },function(e){
                console.log(e);
                if(e=="deny"){
                    $.Huimodalalert('无权限进行该操作',1000);
                    return false;
                }else{
                    $.Huimodalalert('修改成功',1000);
                }
            });

        });


    });


</script>
<{include file="Common/footer"}>